/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aptech.eproject.logictics.dao.thinh;

import javax.ejb.Remote;

/**
 *
 * @author HOANGTHINH
 */
@Remote
public interface RouteManageRemote {

    public java.util.List isTripUseRoute(java.util.List route);

    @javax.ejb.TransactionAttribute(value = javax.ejb.TransactionAttributeType.REQUIRED)
    public boolean removeRoute(java.util.List routeIds);

    public java.util.List getListBranch();

    public boolean addRoute(int fromBranchId, int toBranchId, double distance);

    public java.util.List getListRoute();

    public boolean updateRoute(int routeId, int fromBranchId, int toBranchId, double distance);

    public java.util.List getListRouteByBranchName(java.lang.String branchName);

    public java.lang.String getMessage(java.util.List routeIds);

    public aptech.eproject.logictics.db.Route getRoute(int routeId);

    
}
